//
//  FavoriteViewController.m
//  MyProject
//
//  Created by dllo on 15/10/31.
//  Copyright (c) 2015年 蓝鸥0825. All rights reserved.
//

#import "FavoriteViewController.h"
#import "FavoriteView.h"
#import "Cache.h"

@interface FavoriteViewController ()

@end

@implementation FavoriteViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"我的收藏";
    FavoriteView *faverite = [[FavoriteView alloc] initWithFrame:self.view.frame];
    [self.view addSubview:faverite];
    faverite.VC = self;
    
    [[Cache shareDataBaseHandle] openDB];
    self.arr = [[Cache shareDataBaseHandle] selectAllModel];
    NSLog(@"%@", self.arr);
    faverite.arr = self.arr;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


@end
